package aimis.exception;

import aimis.constant.ResponseEnum;

public class AimisException extends RuntimeException {
    private Object object;

    private ResponseEnum responseEnum;

    public AimisException(String msg) {
        super(msg);
    }

    public AimisException(String msg, Object object) {
        super(msg);
        this.object = object;
    }

    public AimisException(String msg, Throwable cause) {
        super(msg, cause);
    }


    public AimisException(ResponseEnum responseEnum) {
        super(responseEnum.getMsg());
        this.responseEnum = responseEnum;
    }

    public AimisException(ResponseEnum responseEnum, Object object) {
        super(responseEnum.getMsg());
        this.responseEnum = responseEnum;
        this.object = object;
    }


    public Object getObject() {
        return object;
    }

    public ResponseEnum getResponseEnum() {
        return responseEnum;
    }
}